<?php
/**
 * @package panel
 * @subpackage panel.environment.db
 */
/**
 * Overload of maf version to add
 * CP db layer features.
 * @author Dmitry Bakaleinik (code)
 */
class panel__db__update
	extends maf__sqlgen__update {

	/**
	 * @return panel__db__update
	 */
	static public function create() {

		return new self;

	}	# Function

	/**
	 * @return panel__db__update
	 */
	public function setUse($_) {

		return parent::setUse($_);

	}	# Function

	public function execute() {

		if( !$this->getUse() ) {
			throw new panel__e__exception("USE is required for IUD queries"); }

		return p()->db()->queryIUD($this, $this->dropCache);

	}	# Function

}	# Class

/* EOF */